package com.wad.manager.mapper;

import com.wad.dto.system.SysRoleDto;
import com.wad.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wad
 * @date 2023/12/01 10:58
 * @project e-commerce
 **/
@Mapper
public interface SysRoleMapper {
    List<SysRole> findByPage(SysRoleDto sysRoleDto);

    void save(SysRole sysRole);

    void update(SysRole sysRole);

    void deleteById(@Param("roleId") Long roleId);

    List<SysRole> findAll();
}
